//
//  MessageBase.h
//  YouYunSDKDemo
//
//  Created by fusuwei on 14-11-20.
//  Copyright (c) 2014年 网信金融集团. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "IWxChatMgrChatDefs.h"



@interface MessageBase : NSObject

@property (nonatomic,strong) NSString *messageId;        //消息Id
@property (nonatomic,assign) NSUInteger messageType;     //消息类型
@property (nonatomic,strong) NSString *messageBody;      //消息内容
@property (nonatomic,strong) NSString *createTime;       //接收或发出消息时间

@property (nonatomic,assign) ChatMsgState messageStatus; //消息状态
@property (nonatomic,strong) NSString *contactId;       //聊天对方Id
@property (nonatomic,strong) NSString *contactName;       //聊天对方Name
@property (nonatomic,assign) MsgIOStateType isIncoming; //发出或接收flag
@property (nonatomic,assign) BOOL isGroupMsg;           //是否群聊消息
@property (nonatomic,strong) NSString *frommemberID;//若是群聊来自哪个成员的id
@property (nonatomic,assign) BOOL isRead;               //是否已读消息

#pragma mark- *****************************音频消息字段**************************
@property (nonatomic,assign) NSInteger duration;     //audio文件时长

#pragma mark- *****************************自定义消息字段**************************
@property (nonatomic,strong) NSString *content;     //自定义消息内容

#pragma mark- *****************************图片消息字段**************************
@property (nonatomic,strong) NSString *thumbnail;   //图片消息 缩略图地址

#pragma mark- *****************************视频消息字段**************************
//@property (nonatomic,strong) NSString *thumbnail;  //视频消息 缩略图地址
//@property (nonatomic,assign) NSInteger duration;   //视频播放时长

#pragma mark- *****************************文件消息字段**************************
@property (nonatomic,strong) NSString *localFileUrl;    //文件存放路径
@property (nonatomic,strong) NSString *serverFileName;  //服务器上存放文件名称
@property (nonatomic,assign) NSInteger fileSize;        //文件大小
@property (nonatomic,strong) NSString *fileName;        //文件名称



@end
